package com.bgs.service.impl;

import com.bgs.mapper.CommodityorderMapper;
import com.bgs.service.CommodityorderService;
import com.bgs.vo.CommodityorderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityorderServiceImpl implements CommodityorderService {
    @Autowired
    private CommodityorderMapper commodityorderMapper;

    @Override
    public List<CommodityorderVo> getCommodityorder(Integer riderId,Integer coType) {
        return commodityorderMapper.getCommodityorder(riderId,coType);
    }

    @Override
    public List<CommodityorderVo> getCommodityorderImg(Integer commodityId) {
        return commodityorderMapper.getCommodityorderImg(commodityId);
    }

    @Override
    public List<CommodityorderVo> getCommodityorderDetails(Integer coId,Integer riderId) {
        return commodityorderMapper.getCommodityorderDetails(coId,riderId);
    }

    @Override
    public Integer getCommodityorderType(Integer coId, Integer coType) {
        return commodityorderMapper.getCommodityorderType(coId,coType);
    }

    @Override
    public CommodityorderVo getCommodityorderCount(Integer riderId) {
        return commodityorderMapper.getCommodityorderCount(riderId);
    }
}
